package com.ccp.dev.form.xml.table;

import com.ccp.dev.form.model.FormField;
import com.ccp.dev.form.model.FormTable;
import com.ccp.dev.workflow.model.Identity;
import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * <pre>
 * 对象功能:自定义表的XMl配置
 * 开发人员:zxh
 * 创建时间:2012-12-29 13:59:56
 * </pre>
 */
@XmlRootElement(name = "tables")
@XmlAccessorType(XmlAccessType.FIELD)
public class BpmFormTableXml {
	/**
	 * 自定义表
	 */
	@XmlElement(name = "table", type = FormTable.class)
	private FormTable bpmFormTable;

	/**
	 * 自定义表字段列表
	 */
	@XmlElementWrapper(name = "fields")
	@XmlElements({ @XmlElement(name = "field", type = FormField.class) })
	private List<FormField> bpmFormFieldList;
	
	/**
	 * 流水号
	 */
	@XmlElementWrapper(name = "identitys")
	@XmlElements({ @XmlElement(name = "identity", type = Identity.class) })
	private List<Identity> identityList;

	/**
	 * 存在子表则循环
	 */
	@XmlElementWrapper(name = "subTables")
	@XmlElements({ @XmlElement(name = "subTable", type = BpmFormTableXml.class) })
	private List<BpmFormTableXml> bpmFormTableXmlList;

	public FormTable getBpmFormTable() {
		return bpmFormTable;
	}

	public void setBpmFormTable(FormTable bpmFormTable) {
		this.bpmFormTable = bpmFormTable;
	}

	public List<FormField> getBpmFormFieldList() {
		return bpmFormFieldList;
	}

	public void setBpmFormFieldList(List<FormField> bpmFormFieldList) {
		this.bpmFormFieldList = bpmFormFieldList;
	}

	public List<Identity> getIdentityList() {
		return identityList;
	}

	public void setIdentityList(List<Identity> identityList) {
		this.identityList = identityList;
	}

	public List<BpmFormTableXml> getBpmFormTableXmlList() {
		return bpmFormTableXmlList;
	}

	public void setBpmFormTableXmlList(List<BpmFormTableXml> bpmFormTableXmlList) {
		this.bpmFormTableXmlList = bpmFormTableXmlList;
	}

	

}
